
package com.zmks.jkgj.xuexiao.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

 
@Entity
@Table(name = "crct_obj_message_school")
public class CrctObjMessageSchool implements Serializable {
	/**
	 * 序列化版本兼容性
	 */
	private static final long serialVersionUID = 1L;

	private Long id;
	private Long oid;
	private Long school_oid;
	
	private String sendtype;
	private String msg;
	private String scope;
	
	private Date create_date;
	private Date modify_date;
	
	@Id
	@Column(name = "ID")
	@TableGenerator(name = "ID_GENERATOR", // 生成策略名称
	table = "crct_config_oid_sequence", // 生成的表名
	pkColumnName = "name", // 主键的列名
	pkColumnValue = "crct_obj_message_school", // 主键的值
	valueColumnName = "value", // 生成的值 列名
	initialValue = 1, // 主键初识值
	allocationSize = 1 // 主键每次增加的大小
	)
	@GeneratedValue(strategy = GenerationType.TABLE, // 指定主键生成策略
	generator = "ID_GENERATOR")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getOid() {
		
		return oid;
	}
	public void setOid(Long oid) {
		if(oid!=null)
		this.oid = oid;
	   else
     	this.oid = id;	
		
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public Date getCreate_date() {
		return create_date;
	}
	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}
	public Date getModify_date() {
		return modify_date;
	}
	public void setModify_date(Date modify_date) {
		this.modify_date = modify_date;
	}
	public Long getSchool_oid() {
		return school_oid;
	}
	public void setSchool_oid(Long school_oid) {
		this.school_oid = school_oid;
	}
	public String getSendtype() {
		return sendtype;
	}
	public void setSendtype(String sendtype) {
		this.sendtype = sendtype;
	}

	


}
